package com.hx.zhg.constant;

/** 
 * @description: 控制层相关公共常量
 */
public class CommonConstant {
	
	/** 主页请求路径 */
	public static final String INDEX_VIEW = "/";
	/** 登陆页请求路径（重定向或指向登录页） */
	public static final String LOGIN_VIEW = "/user/login";
	/** 非法请求页请求路径 （重定向或指向登录页） */
	public static final String ILEGAL_VISIT_VIEW = "/error/ilegal_visit";
	/** 错误页请求路径 （重定向或指向登录页） */
	public static final String ERROR_VIEW = "/error/error";
	/** 404页请求路径 （重定向或指向登录页） */
	public static final String NOT_FOUND_VIEW = "/error/404";
	public static final String BAD_REQUEST_VIEW = "/error/400";

	/** 重定向前缀 */
	public static final String REDIRECT_PREFIX = "redirect:";
	
    /** 默认编码 UTF-8  */
    public static final String CHARSET_UTF_8 = "UTF-8";
    /** GB18030 */
    public static final String CHARSET_GB18030 = "GB18030";
    /** ISO-8859-1 */
    public static final String CHARSET_ISO_8859_1 = "ISO-8859-1";

    /** 本地运行环境localhost域名*/
    public static final String DOMAIN_LOCAL_HOST_LOCALHOST = "localhost";
    /** 本地运行环境127.0.0.1域名*/
    public static final String DOMAIN_LOCAL_IP_LOCALHOST = "127.0.0.1";
    /** 生产环境.com结尾的域名*/
    public static final String DOMAIN_PRODUCTION_GLOBAL_COM = "bodivis.com.cn";
    /** 生产环境.com结尾的域名 */
    public static final String DOMAIN_PRODUCTION_GLOBAL_WWW_COM = "www.bodivis.com.cn";

    //测试环境https
    public static final String DOMAIN_TEST_GLOBAL_COM = "https://test.bodivis.com.cn";

    /** 系统环境存储在request里面的key */
    public static final String ENV_KEY = "env";
    /** 本地运行环境 */
    public static final String ENV_LOCAL = "dev";
    /** 生产运行环境 */
    public static final String ENV_PRODUCTION = "prod";
    /**数据库Integer默认值-1**/
    public static final Integer INTEGER_DEFAULT = -1;
    public static final String SMALL_IMG= "?x-oss-process=image/resize,w_100,h_100";
    /** accept protobuf **/
    public static final String ACCEPT_PROTOBUF = "Accept=application/x-protobuf";
    public static final String CONTENT_TYPE_PROTOBUF = "application/x-protobuf";
    /** header 中用户id字段 **/
    public static final String HEADER_USERID = "userId";
    public static final String HEADER_APP_TYPE = "appType";
    public static final String HEADER_DEVICE_TYPE = "deviceType";
    public static final String HEADER_APP_VERSION = "appVersion";
    public static final String HEADER_APP_SESSION = "sessionToken";
    public static final String HEADER_LANGUAGE = "language";
    public static final String HEADER_USER_AGENT = "user-agent";
    public static final String HEADER_TIMEZONE = "timeZone";
    public static final String HEADER_REGION = "region";
    public static final String USER_AGENT_IOS = "Bodivis";
    public static final String SPLIT_COMMA = ",";
    //图片分割符
    public static final String IMAGE_URL_SPLIT = "&#";

    // requestToken 的长度
    public static final int REQUEST_TOKEN_LENGTH = 6;
    //注册的软件版本支持的最大字节数
    public static final int VERSION_MAX_LENGTH = 16;
    public static final String HTML_START = "<html><body>";
    public static final String HTML_END = "</body></html>";




}
